<?php

namespace App\Models;

use Illuminate\Support\Collection;

class RedRainList extends Model
{
    protected $table = 'yf_red_rain_list';
    protected $primaryKey = 'rainRed_id';
    public $timestamps = false;
    protected $guarded = ['rainRed_id'];

    public static function getByRainId(int $rainId) : Collection
    {
        return self::whereRainId($rainId)->get();
    }
}
